<div id="wrapper-content" align="left">

    <table class="titrepage" width="100%">
        <tr>
            <td >La liste des adherents</td>
            <td align="right">Total | <?php echo $total ?> </td>
        </tr>
    </table>
    <table width="100%" class="list">
        <thead>
            <tr>
                <th width="100px" >Img</th>
                <th>Nom</th>
                <th>Prenom</th>
                <th width="80px" >Action</th>
               
            </tr>
        </thead>
        <?php foreach ($query as $aRow): ?>
         <?php
            $image_path = './assets/img_web_ads/thumbs/' . $aRow['logo_ad'];
            if (file_exists($image_path)) {
                $image_path = base_url() . 'assets/img_web_ads/thumbs/' . $aRow['logo_ad'];
            } else {
                $image_path = base_url() . 'assets/noimage.gif';
            }
        ?>
            <tr>
                <td ><img width="80px" src="<?php echo $image_path; ?>" /></td>
                <td><?php echo $aRow['nom'];?></td>
                <td><?php echo $aRow['prenom']; ?></td>
                
                <td ><a href="<?php echo site_url('client/detail_client')."/".$aRow['id']?>" ><img border="0"src="<?php echo base_url();?>assets/admin/images/detail.png"/></a></td>
                </tr>
        <?php endforeach; ?>
                </table>
<?php echo $pagination; ?>
</div>